
import request from '@/utils/request'

export function getPreDepositList(page = 1, limit = 1) {
  return request({
    url: '/api/preDepositLog/',
    method: 'get',
    params: { page, limit }
  })
}

export function getPreDepositForUser(page = 1, limit = 1, id) {
  return request({
    url: '/api/preDepositLog/' + id + '/',
    method: 'get',
    params: { page, limit }
  })
}

export function createPreDepositForUser(data) {
  return request({
    url: '/api/preDepositLog/',
    method: 'post',
    data
  })
}
